<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title><%= title %></title>

	<% include ../includes/head%>
</head>
<body>
	<% include ../includes/header%>
	
	<div id="container-inner">
		<ul id="breadcrumb-wrapper">
        
	    	<li>
	            <a href="/">
                <ins>
				    <div class="br-left"></div>
				    <div class="br-mid">
				    	主页
				    </div><!--br-mid-->
				    <div class="br-right">
				    </div><!--br-right-->
                </ins>    
		        </a>
            </li>  
            
            <li>
	            <a href="blog.html">
                <ins>
				    <div class="br-left"></div>
				    <div class="br-mid">
				    	新闻列表
				    </div><!--br-mid-->
				    <div class="br-right">
				    </div><!--br-right-->
                </ins>    
		        </a>
            </li>
            
           
            <li id="page-title">
          		新闻列表
        	</li><!--page-title-->
        </ul>
        <div id="inner-border"></div>
        <div class="clear"></div>
        <div id="contentwrap-inner">
        	
			<div class="row">

				<form method="post" action="/admin/travel/new" class="form-horizontal" enctype="multipart/form-data">

					<div class="form-group">
						<label for="inputTitle" class="col-sm-2 control-label">游记标题</label>
						<div class="col-sm-10">
							<input type="text" name ="title" id="inputTitle" class="form-control" value= "<%= travel.title %>">
						</div>
					</div>
					<div class="form-group">
						<label for="inputAuthor" class="col-sm-2 control-label">作者</label>
						<div class="col-sm-10">
							<input type="text" name ="author" id="inputAuthor" class="form-control" value= "<%= travel.author %>">
						</div>
					</div>
					
					<div class="form-group">
						<label for="inputDoctor" class="col-sm-2 control-label">内容</label>
						<div class="col-sm-10">
							<textarea type="text" name="text" id="inputText" class="form-control" value="<%= travel.text %>"><%= travel.text %></textarea>
							
						</div>
					</div>
					
					<div class="form-group">
						<label for="inputPoster" class="col-sm-2 control-label">在线图片地址</label>
						<div class="col-sm-10">
							<input type="text" name="poster" id="inputPoster" class="form-control" value="<%= travel.poster %>">
						</div>
					</div>
					<div class="form-group">
						<label for="inputPoster" class="col-sm-2 control-label">图片上传</label>
						<div class="col-sm-10">
							<input type="file" name="uploadPoster" id="uploadPoster" >
						</div>
					</div>
					<div class="form-group">
						<label for="inputtype" class="col-sm-2 control-label">类型</label>
						<div class="col-sm-10">
							<input type="text" name="type" id="inputType" class="form-control" value="<%= travel.type %>">
						</div>
					</div>
					<div class="form-group">
						<label for="inputTag" class="col-sm-2 control-label">标签</label>
						<div class="col-sm-10">
							<input type="text" name="tag" id="inputTag" class="form-control" value="<%= travel.tag %>">
						</div>
					</div>
					<input type="text" style="display: none" name="id" value="<%= travel._id%>">
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="submit">录入</button>
						</div>
					</div>
				</form>
			</div>
			<div class="clear"></div>
        </div>		
	</div>
	<% include ../includes/footer-x%>
</body>
</html>